﻿@model INSE6260.OnlineBanking.Model.Accounts.AccountInfo

@{
    ViewBag.Title = "Create New Account";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Create New Account</legend>
        <div class="editor-label">
            @Html.LabelFor(m => m.AccountType)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.AccountDesc, new SelectList(ViewBag.AccountDesc, "Desc", "Desc"))
            @Html.ValidationMessageFor(m => m.AccountDesc)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Address)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Address)
            @Html.ValidationMessageFor(model => model.Address)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Telephone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Telephone)
            @Html.ValidationMessageFor(model => model.Telephone)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.OccupationType)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.OccupationTypeId, new SelectList(ViewBag.OccupationType, "Id", "Name"))
            @Html.ValidationMessageFor(m => m.OccupationTypeId)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.EmploymentType)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.EmploymentTypeId, new SelectList(ViewBag.EmploymentType, "Id", "Name"))
            @Html.ValidationMessageFor(m => m.EmploymentTypeId)
        </div>
        <p>
            <input type="submit" value="Create" />
             @Html.ActionLink("Cancel", "Index", "Home", null, new { @class = "khbtn" })
        </p>
    </fieldset>
}

